﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SurfaceAsteroids
{

    class Shot : SpaceObject
    {
        private long spawnTime;
        private long timeToLive;

        public long SpawnTime
        {
            get { return spawnTime; }
            set { spawnTime = value; }
        }

        public long TimeToLive
        {
            get { return timeToLive; }
            set { timeToLive = value; }
        }

        override
        public string ObjectType()
        {
            return "shot";
        }

        public Shot(Vector2 loc, float rot, float vel, Microsoft.Xna.Framework.Graphics.Color col, float sca, Texture2D tex, long spawntime, long timeToLive)
            : base(loc, rot, vel, col, sca, tex)
        {
            this.spawnTime = spawntime;
            this.timeToLive = timeToLive;
        }
 
    }
}
